package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 充值订单对象 recharge_order
 * 
 * @author ruoyi
 * @date 2025-06-28
 */
public class RechargeOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 充值订单id */
    private Integer roId;

    /** 订单号 */
    @Excel(name = "订单号")
    private String roNumber;

    /** 订单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "订单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date roTime;

    /** 充电站id */
    @Excel(name = "充电站id")
    private Integer roStationId;

    /** 充值金额 */
    @Excel(name = "充值金额")
    private Double roMoney;

    /** 会员id */
    @Excel(name = "会员id")
    private Integer roHuiyuanId;

    /** 支付方式 */
    @Excel(name = "支付方式")
    private String roType;

    /** 订单状态 */
    @Excel(name = "订单状态")
    private String roStatus;
    private ChargingStation chargingStation=new ChargingStation();
    private Huiyuan huiyuan=new Huiyuan();
    private String csName; // 充电站名称
    private String huiyuanName; // 会员名称

    // 添加getter/setter
    public String getCsName() {
        return csName;
    }

    public void setCsName(String csName) {
        this.csName = csName;
    }

    public String getHuiyuanName() {
        return huiyuanName;
    }

    public void setHuiyuanName(String huiyuanName) {
        this.huiyuanName = huiyuanName;
    }

    public Huiyuan getHuiyuan() {
        return huiyuan;
    }

    public void setHuiyuan(Huiyuan huiyuan) {
        this.huiyuan = huiyuan;
    }

    public ChargingStation getChargingStation() {
        return chargingStation;
    }

    public void setChargingStation(ChargingStation chargingStation) {
        this.chargingStation = chargingStation;
    }

    public void setRoId(Integer roId)
    {
        this.roId = roId;
    }

    public Integer getRoId() 
    {
        return roId;
    }

    public void setRoNumber(String roNumber) 
    {
        this.roNumber = roNumber;
    }

    public String getRoNumber() 
    {
        return roNumber;
    }

    public void setRoTime(Date roTime) 
    {
        this.roTime = roTime;
    }

    public Date getRoTime() 
    {
        return roTime;
    }

    public void setRoStationId(Integer roStationId) 
    {
        this.roStationId = roStationId;
    }

    public Integer getRoStationId() 
    {
        return roStationId;
    }

    public void setRoMoney(Double roMoney) 
    {
        this.roMoney = roMoney;
    }

    public Double getRoMoney() 
    {
        return roMoney;
    }

    public void setRoHuiyuanId(Integer roHuiyuanId) 
    {
        this.roHuiyuanId = roHuiyuanId;
    }

    public Integer getRoHuiyuanId() 
    {
        return roHuiyuanId;
    }

    public void setRoType(String roType) 
    {
        this.roType = roType;
    }

    public String getRoType() 
    {
        return roType;
    }

    public void setRoStatus(String roStatus) 
    {
        this.roStatus = roStatus;
    }

    public String getRoStatus() 
    {
        return roStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("roId", getRoId())
            .append("roNumber", getRoNumber())
            .append("roTime", getRoTime())
            .append("roStationId", getRoStationId())
            .append("roMoney", getRoMoney())
            .append("roHuiyuanId", getRoHuiyuanId())
            .append("roType", getRoType())
            .append("roStatus", getRoStatus())
            .append("chargingStation", getChargingStation())
            .append("huiyuan",getHuiyuan())
            .toString();
    }
}
